home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.3 / Printer / src / EpsonQ / data.c next >
Encoding:
Text File  |  1992-08-27  |  6.5 KB  |  223 lines

  1. /*
  2.     Data.c table for EpsonQ driver.
  3.     David Berezowski - March/88.
  4.  
  5.   Copyright (c) 1988 Commodore-Amiga, Inc.
  6.  
  7.   Executables based on this information may be used in software
  8.   for Commodore Amiga computers.  All other rights reserved.
  9.  
  10.   This information is provided "as is"; no warranties are made.
  11.   All use is at your own risk, and no liability or responsibility is assumed.
  12. */
  13.  
  14. char *CommandTable[] ={
  15.     "\375\033@\375",/* 00 aRIS reset            */
  16.     "\377",        /* 01 aRIN initialize            */
  17.     "\377",        /* 02 aIND linefeed            */
  18.     "\012\015",    /* 03 aNEL CRLF                */
  19.     "\377",        /* 04 aRI reverse LF            */
  20.  
  21.             /* 05 aSGR0 normal char set        */
  22.     "\0335\033-\376\033F",
  23.     "\0334",    /* 06 aSGR3 italics on            */
  24.     "\0335",    /* 07 aSGR23 italics off        */
  25.     "\033-\001",    /* 08 aSGR4 underline on        */
  26.     "\033-\376",    /* 09 aSGR24 underline off        */
  27.     "\033E",    /* 10 aSGR1 boldface on            */
  28.     "\033F",    /* 11 aSGR22 boldface off        */
  29.     "\377",        /* 12 aSFC set foreground color        */
  30.     "\377",        /* 13 aSBC set background color        */
  31.  
  32.             /* 14 aSHORP0 normal pitch        */
  33.     "\033P\022\033W\376",
  34.             /* 15 aSHORP2 elite on            */
  35.     "\033M\022\033W\376",
  36.     "\033P",    /* 16 aSHORP1 elite off            */
  37.             /* 17 aSHORP4 condensed fine on        */
  38.     "\017\033P\033W\376",
  39.     "\022",        /* 18 aSHORP3 condensed fine off    */
  40.     "\033W\001",    /* 19 aSHORP6 enlarge on        */
  41.     "\033W\376",    /* 20 aSHORP5 enlarge off        */
  42.  
  43.     "\377",        /* 21 aDEN6 shadow print on        */
  44.     "\377",        /* 22 aDEN5 shadow print off        */
  45.     "\033G",    /* 23 aDEN4 double strike on        */
  46.     "\033H",    /* 24 aDEN3 double strike off        */
  47.     "\033x\001",    /* 25 aDEN2 NLQ on            */
  48.     "\033x\376",    /* 26 aDEN1 NLQ off            */
  49.  
  50.     "\033S\376",    /* 27 aSUS2 superscript on        */
  51.     "\033T",    /* 28 aSUS1 superscript off        */
  52.     "\033S\001",    /* 29 aSUS4 subscript on        */
  53.     "\033T",    /* 30 aSUS3 subscript off        */
  54.     "\033T",    /* 31 aSUS0 normalize the line        */
  55.     "\377",        /* 32 aPLU partial line up        */
  56.     "\377",        /* 33 aPLD partial line down    */
  57.  
  58.     "\033R\376",    /* 34 aFNT0 Typeface 0            */
  59.     "\033R\001",    /* 35 aFNT1 Typeface 1            */
  60.     "\033R\002",    /* 36 aFNT2 Typeface 2            */
  61.     "\033R\003",    /* 37 aFNT3 Typeface 3            */
  62.     "\033R\004",    /* 38 aFNT4 Typeface 4            */
  63.     "\033R\005",    /* 39 aFNT5 Typeface 5            */
  64.     "\033R\006",    /* 40 aFNT6 Typeface 6            */
  65.     "\033R\007",    /* 41 aFNT7 Typeface 7            */
  66.     "\033R\010",    /* 42 aFNT8 Typeface 8            */
  67.     "\033R\011",    /* 43 aFNT9 Typeface 9            */
  68.     "\033R\012",    /* 44 aFNT10 Typeface 10        */
  69.  
  70.     "\033p1",    /* 45 aPROP2 proportional on        */
  71.     "\033p0",    /* 46 aPROP1 proportional off        */
  72.     "\377",        /* 47 aPROP0 proportional clear        */
  73.     "\377",        /* 48 aTSS set proportional offset    */
  74.             /* 49 aJFY5 auto left justify        */
  75.     "\033x\001\033a\376",
  76.             /* 50 aJFY7 auto right justify        */
  77.     "\033x\001\033a\002",
  78.             /* 51 aJFY6 auto full jusitfy        */
  79.     "\033x\001\033a\003",
  80.     "\033a\376",    /* 52 aJFY0 auto jusity off        */
  81.     "\377",        /* 53 aJFY3 letter space        */
  82.             /* 54 aJFY1 word fill            */
  83.     "\033x\001\033a\001",
  84.  
  85.     "\0330",    /* 55 aVERP0 1/8" line spacing        */
  86.     "\0332",    /* 56 aVERP1 1/6" line spacing        */
  87.     "\377",        /* 57 aSLPP set form length        */
  88.     "\377",        /* 58 aPERF perf skip n (n > 0)        */
  89.     "\033O",    /* 59 aPERF0 perf skip off        */
  90.  
  91.     "\377",        /* 60 aLMS set left margin        */
  92.     "\377",        /* 61 aRMS set right margin        */
  93.     "\377",        /* 62 aTMS set top margin        */
  94.     "\377",        /* 63 aBMS set bottom margin        */
  95.     "\377",        /* 64 aSTBM set T&B margins        */
  96.     "\377",        /* 65 aSLRM set L&R margins        */
  97.     "\377",        /* 66 aCAM clear margins        */
  98.  
  99.     "\377",        /* 67 aHTS set horiz tab        */
  100.     "\377",        /* 68 aVTS set vert tab            */
  101.     "\377",        /* 69 aTBC0 clear horiz tab        */
  102.     "\033D\376",    /* 70 aTBC3 clear all horiz tabs    */
  103.     "\377",        /* 71 aTBC1 clear vert tab        */
  104.     "\377",        /* 72 aTBC4 clear all vert tabs        */
  105.     "\033D\376",    /* 73 aTBCALL clear all h & v tabs    */
  106.             /* 74 aTBSALL set default tabs        */
  107. "\033D\010\020\030\040\050\060\070\100\110\120\130\140\150\160\170\200\376",
  108.  
  109.     "\377",        /* 75 aEXTEND extended commands        */
  110.     "\377",        /* 76 aRAW next 'n' chars are raw    */
  111. };
  112.  
  113. char *ExtendedCharTable[] = {
  114.     " ",                    /* NBSP*/
  115.     "\033R\007[\033R\\0",            /* i */
  116.     "c\010|",                /* c| */
  117.     "\033R\003#\033R\\0",            /* L- */
  118.     "\033R\005$\033R\\0",            /* o */
  119.     "\033R\010\\\\\033R\\0",        /* Y- */
  120.     "|",                    /* | */
  121.     "\033R\002@\033R\\0",            /* SS */
  122.  
  123.     "\033R\001~\033R\\0",            /* " */
  124.     "c",                     /* copyright */
  125.     "\033S\\0a\010_\033T",            /* a_ */
  126.     "<",                    /* << */
  127.     "~",                    /* - */
  128.     "-",                    /* SHY */
  129.     "r",                    /* registered trademark */
  130.     "-",                    /* - */
  131.  
  132.     "\033R\001[\033R\\0",            /* degrees */
  133.     "+\010_",                /* +_ */
  134.     "\033S\\0002\033T",            /* 2 */
  135.     "\033S\\0003\033T",            /* 3 */
  136.     "'",                    /* ' */
  137.     "u",                    /* u */
  138.     "P",                    /* reverse P */
  139.     "\033S\\000.\033T",            /* . */
  140.  
  141.     ",",                    /* , */
  142.     "\033S\\0001\033T",            /* 1 */
  143.     "\033R\001[\033R\\0\010-",        /* o_ */
  144.     ">",                    /* >> */
  145.     "\033S\\0001\033T\010-\010\033S\0014\033T",    /* 1/4 */
  146.     "\033S\\0001\033T\010-\010\033S\0012\033T",    /* 1/2 */
  147.     "\033S\\0003\033T\010-\010\033S\0014\033T",    /* 3/4 */
  148.     "\033R\007]\033R\\0",            /* upside down ? */
  149.  
  150.     "A\010`",                /* `A */
  151.     "A\010'",                /* 'A */
  152.     "A\010^",                /* ^A */
  153.     "A\010~",                /* ~A */
  154.     "\033R\002[\033R\\0",            /* "A */
  155.     "\033R\004]\033R\\0",            /* oA */
  156.     "\033R\004[\033R\\0",            /* AE */
  157.     "C\010,",                /* C, */
  158.  
  159.     "E\010`",                /* `E */
  160.     "\033R\011@\033R\\0",            /* 'E */
  161.     "E\010^",                /* ^E */
  162.     "E\010\033R\001~\033R\\0",        /* "E */
  163.     "I\010`",                /* `I */
  164.     "I\010`",                /* 'I */
  165.     "I\010^",                /* ^I */
  166.     "I\010\033R\001~\033R\\0",        /* "I */
  167.  
  168.     "D\010-",                /* -D */
  169.     "\033R\007\\\\\033R\\0",        /* ~N */
  170.     "O\010`",                /* `O */
  171.     "O\010'",                /* 'O */
  172.     "O\010^",                /* ^O */
  173.     "O\010~",                /* ~O */
  174.     "\033R\002\\\\\033R\\0",        /* "O */
  175.     "x",                    /* x */
  176.  
  177.     "\033R\004\\\\\033R\\0",        /* 0 */
  178.     "U\010`",                /* `U */
  179.     "U\010'",                /* 'U */
  180.     "U\010^",                /* ^U */
  181.     "\033R\002]\033R\\0",            /* "U */
  182.     "Y\010'",                /* 'Y */
  183.     "T",                    /* Thorn */
  184.     "\033R\002~\033R\\0",            /* B */
  185.  
  186.     "\033R\001@\033R\\0",            /* `a */
  187.     "a\010'",                /* 'a */
  188.     "a\010^",                /* ^a */
  189.     "a\010~",                /* ~a */
  190.     "\033R\002{\033R\\0",            /* "a */
  191.     "\033R\004}\033R\\0",            /* oa */
  192.     "\033R\004{\033R\\0",            /* ae */
  193.     "\033R\001\\\\\033R\\0",        /* c, */
  194.  
  195.     "\033R\001}\033R\\0",            /* `e */
  196.     "\033R\001{\033R\\0",            /* 'e */
  197.     "e\010^",                /* ^e */
  198.     "e\010\033R\001~\033R\\0",        /* "e */
  199.     "\033R\006~\033R\\0",            /* `i */
  200.     "i\010'",                /* 'i */
  201.     "i\010^",                /* ^i */
  202.     "i\010\033R\001~\033R\\0",        /* "i */
  203.  
  204.     "d",                    /* d */
  205.     "\033R\007|\033R\\0",            /* ~n */
  206.     "\033R\006|\033R\\0",            /* `o */
  207.     "o\010'",                /* 'o */
  208.     "o\010^",                /* ^o */
  209.     "o\010~",                /* ~o */
  210.     "\033R\002|\033R\\0",            /* "o */
  211.     ":\010-"                /* :- */
  212.  
  213.     "\033R\004|\033R\\0",            /* o/ */
  214.     "\033R\001|\033R\\0",            /* `u */
  215.     "u\010'",                /* 'u */
  216.     "u\010^",                /* ^u */
  217.     "\033R\002}\033R\\0",            /* "u */
  218.     "y\010'",                /* 'y */
  219.     "t",                    /* thorn */
  220.     "y\010\033R\001~\033R\\0"        /* "y */
  221. };
  222.  
  223.